import 'package:flutterproject/generated/json/base/json_convert_content.dart';
import 'package:flutterproject/page/main/data/notice_bean.dart';

NoticeBean $NoticeBeanFromJson(Map<String, dynamic> json) {
	final NoticeBean noticeBean = NoticeBean();
	final double? id = jsonConvert.convert<double>(json['id']);
	if (id != null) {
		noticeBean.id = id;
	}
	final dynamic createTime = jsonConvert.convert<dynamic>(json['createTime']);
	if (createTime != null) {
		noticeBean.createTime = createTime;
	}
	final dynamic updateTime = jsonConvert.convert<dynamic>(json['updateTime']);
	if (updateTime != null) {
		noticeBean.updateTime = updateTime;
	}
	final dynamic flag = jsonConvert.convert<dynamic>(json['flag']);
	if (flag != null) {
		noticeBean.flag = flag;
	}
	final dynamic lang = jsonConvert.convert<dynamic>(json['lang']);
	if (lang != null) {
		noticeBean.lang = lang;
	}
	final String? title = jsonConvert.convert<String>(json['title']);
	if (title != null) {
		noticeBean.title = title;
	}
	final String? content = jsonConvert.convert<String>(json['content']);
	if (content != null) {
		noticeBean.content = content;
	}
	final int? publishTime = jsonConvert.convert<int>(json['publishTime']);
	if (publishTime != null) {
		noticeBean.publishTime = publishTime;
	}
	final dynamic state = jsonConvert.convert<dynamic>(json['state']);
	if (state != null) {
		noticeBean.state = state;
	}
	return noticeBean;
}

Map<String, dynamic> $NoticeBeanToJson(NoticeBean entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['createTime'] = entity.createTime;
	data['updateTime'] = entity.updateTime;
	data['flag'] = entity.flag;
	data['lang'] = entity.lang;
	data['title'] = entity.title;
	data['content'] = entity.content;
	data['publishTime'] = entity.publishTime;
	data['state'] = entity.state;
	return data;
}